<?php

define('UE_IN', 1);
$siteDir =  dirname(dirname(dirname(__FILE__)));

require $siteDir.'/libs/UE.php';
require $siteDir.'/libs/UE/Url.php';

print basename(PHP_SELF);
print "\nUE_Url::make:\n";
UE_Config::set('rewrite', 1);
UE_Lang::$locale = 'en_US';
UE_Url::make('system/category/edit/12#a第三sd');
print UE_Url::make('info/show/list/id/x/xx/ssdw#youyou', 0, 1);
print "\n<br><br>\n\n";

print "UE_Url::parse:\n";

$p = UE_Url::parse('http://localhost/c3lzdGVtL2NhdGVnb3J5L2VkaXQvOA.htm');

print_r($p);

$url = 'http://localhost/c3lzdGVtL2NhdGVnb3J5L2VkaXQvOA.htm#12334';
if(false !== $pos = strpos($url, '#')) {
	$anchor = substr($url, $pos);
	$url = substr($url, 0, $pos);
}

print $anchor;